package cn.com.oceansoft.osc.ms.controller;

import cn.com.oceansoft.osc.ms.service.IMemberService;
import cn.ucox.web.framework.exception.DataNotFoundException;
import cn.ucox.web.framework.view.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wuzy
 * @created 2017-08-07-15:58
 * @email wzy@oceansoft.com.cn
 */
//@RestController
//@RequestMapping(value = "member")
//@Api(value = "人员", description = "办件相关接口")
public class MemberController {


    @Resource
    IMemberService memberService;

    @GetMapping("{id}/{sign}")
    @ApiOperation("获取办件审批信息")
    @ApiImplicitParam(paramType="path",name="id",dataType="String",required=true,value="办件唯一编号")
    public ApiResult approvals(@PathVariable("id") String id,@PathVariable("sign") String sign) throws DataNotFoundException {
        return  memberService.getUserInfo(id,sign);
    }
}
